package com.webserver.entity;

import java.io.Serializable;

/**
 * 作者：JustOne
 * 微信：Andylau2020smile
 * 抖音：JustOne2018
 * 日期：2022/6/26 15:53
 */
public class Blog implements Serializable {
    //手动编写三个属性后，还需要添加：无参构造，全参构造，get/set，toString
    //系列化版本号到虽的类复制即可
    private static final long serialVersionUID = 2L;
    private String title;
    private String auther;
    private String content;

    public Blog() {

    }

    public Blog(String title, String auther, String content) {
        this.title = title;
        this.auther = auther;
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuther() {
        return auther;
    }

    public void setAuther(String auther) {
        this.auther = auther;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "title='" + title + '\'' +
                ", auther='" + auther + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
